﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Groupware
{
    public class Stage
    {
        #region Parameters  
        internal Storage.EntityModels.Stage dbStage;

        #endregion

        #region Constructor

        public Stage(Storage.EntityModels.Stage dbStage)
        {
            this.dbStage = dbStage;
        }
        #endregion

        #region Properties
        
        internal Storage.EntityModels.Stage DbStage
        {
            get { return dbStage; }
            set { dbStage = value; }
        }

        public byte BusySeats
        {
            get { return dbStage.BusySeats; }
        }
        public Place Destination
        {
            get { return new Place(dbStage.Destination); }
        }
        public double Distance
        {
            get { return dbStage.Distance; }
        }
        public decimal? EstimatedBudget
        {
            get { return dbStage.EstimatedBudget; }
        }
        public short? EstimatedTime
        {
            get { return dbStage.EstimatedTime; }
        }
        public Place Origin
        {
            get { return new Place(dbStage.Origin); }
        }
        public byte ReservedSeats
        {
            get { return dbStage.ReservedSeats; }
        }
        public Storage.EntityModels.VehicleDetails Vehicle
        {
            get { return dbStage.Users_VehicleDetails.VehicleDetails; }
        }
        #endregion
    }
}
